//Francisco "Kiko" Olvera
//are one of three types: STRAIGHT, ELBOW, THREEWAY
//may or may not have powerup or artifact; cannot have both
//track own position on board
//face one of four directions: NORTH, SOUTH, EAST, WEST
//Tile.h

#include "Tile.h"

Tile::Tile()
{
	m_artifact = 0;
	m_movable = true;
	material = new Material;
}

void Tile::setSpawn(int a_type, XY a_boardPos, int direction)
{
	m_type = a_type;
	m_boardPos = a_boardPos;
	setOrientation(direction);
	m_movable = false;
}
/**
* Will's material stuff for lighting UI
***************************************/
void Tile::setMatToRed()
{
	material->setToRed();
}
void Tile::setMatToGreen()
{
	material->setToGreen();
}
void Tile::setMatToYellow()
{
	material->setToYellow();
}
void Tile::setMatToWhite()
{
	material->setToWhite();
}
D3DMATERIAL9 Tile::getMaterial()
{
	return material->getMaterial();
}